package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceDrawPrizeTask 活动下载任务表
type DanceDrawPrizeTask struct {
	Id               int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	DrawPrizeTaskStr string         `json:"drawPrizeTask" gorm:"column:draw_prize_task;type:text;not null;default:'';comment:下载任务"` // 下载任务
	DataUrl          string         `json:"dataUrl" gorm:"column:data_url;type:varchar(255);not null;default:'';comment: 下载url"`    //
	Status           int            `json:"status" gorm:"column:status;type:tinyint;default:0;not null;comment:状态"`                 // 下载状态 0待下载  1下载成功  2下载失败
	Remark           string         `json:"remark" gorm:"column:remark;type:text;not null;default:'';comment:备注"`                   //
	CreatedId        int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`       // 创建人id
	CreatedAt        time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt        time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt        gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
